﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class ChiTietTraHangNCCDTO
    {
        #region "Khai báo các biến"
        private string _maMH;        
        private string _maTHNCC;        
        private int _soLuong;        
        private double _donGia;        
        private float _chietKhau;       
        private double _thanhTien;        
        #endregion

        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaMH
        {
            get { return _maMH; }
            set { _maMH = value; }
        }
        [DataMember]
        public string MaTHNCC
        {
            get { return _maTHNCC; }
            set { _maTHNCC = value; }
        }
        [DataMember]
        public int SoLuong
        {
            get { return _soLuong; }
            set { _soLuong = value; }
        }
        [DataMember]
        public double DonGia
        {
            get { return _donGia; }
            set { _donGia = value; }
        }
        [DataMember]
        public float ChietKhau
        {
            get { return _chietKhau; }
            set { _chietKhau = value; }
        }
        [DataMember]
        public double ThanhTien
        {
            get { return _thanhTien; }
            set { _thanhTien = value; }
        }
        #endregion

        #region "Khai báo các contructor"
        public ChiTietTraHangNCCDTO() { }
        public ChiTietTraHangNCCDTO( string maMH, string maTHNCC, int soLuong, double donGia, float chietKhau, double thanhTien) 
        {
            this.MaMH = maMH;
            this.MaTHNCC = maTHNCC;
            this.SoLuong = soLuong;
            this.DonGia = donGia;
            this.ChietKhau = chietKhau;
            this.ThanhTien = thanhTien;
        }
        public ChiTietTraHangNCCDTO(ChiTietTraHangNCCDTO ChiTietTraHangNCC) 
        {
            this.MaMH = ChiTietTraHangNCC.MaMH;
            this.MaTHNCC = ChiTietTraHangNCC.MaTHNCC;
            this.SoLuong = ChiTietTraHangNCC.SoLuong;
            this.DonGia = ChiTietTraHangNCC.DonGia;
            this.ChietKhau = ChiTietTraHangNCC.ChietKhau;
            this.ThanhTien = ChiTietTraHangNCC.ThanhTien;
        }
        #endregion
    }
}